import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import home from '@/pages/home'
import search from '@/pages/search'
import message from '@/pages/message'
import me from '@/pages/me'

 // },
import goods from '@/components/home/goods'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      meta:{index:0},
      component: home
    },{
      path:'/search',
      meta:{index:1},
      component:search
    },{
      path:'/message',
      meta:{index:2},
      component:message
    },{
      path:'/me',
      meta:{index:3},
      component:me
    },{
         path:'/goods/:homeMainid',
         props:true,
         meta:{index:10},
         component:goods
       }
  ]
})
